package com.cgx.service;

import com.cgx.entity.message.Session;
import com.cgx.entity.message.SessionUser;
import com.cgx.vo.websocket.MessageVo;
import com.cgx.vo.ResultVo;
import com.cgx.vo.SessionVo;

import java.util.List;
import java.util.Map;

public interface SessionService {

    List<Session> findAllSessionByUserId(String userId);

    List<Session> saveAllSession(List<Session> sessionList);

    List<SessionUser> saveAllSessionUser(List<SessionUser> sessionList);

    Map<String, ResultVo> sendMessageBySessionId(MessageVo messageVo);

    List<SessionVo> getSessionList(Map<String, Object> data);

    Object getSessionInfo(Map<String, Object> data);

    Object getMessage(Map<String, Object> data);

    List<Session> getSessionBySessionId(List<String> idList);

    List<SessionUser> getSessionUserBySessionId(List<String> idList);

    SessionVo getSessionInfoBySessionId(Map<String, Object> data);
}
